package org.jeecg.modules.xl.brand.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.xl.brand.entity.XlProductBrand;
import org.jeecg.modules.xl.brand.mapper.XlProductBrandMapper;
import org.jeecg.modules.xl.brand.service.IXlProductBrandService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author deco
 * @create 2025-02-27
 */
@Service
public class XlProductBrandServiceImpl  extends ServiceImpl<XlProductBrandMapper, XlProductBrand> implements IXlProductBrandService {

    //key的定义参考官方文档
    @Cacheable(cacheNames="brandlist")
    public List<XlProductBrand> getAllBrand(){
       return  baseMapper.selectList(null);
    }


}
